<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="page" uri="http://www.forten.org/taglib/page"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!-- CSS -->
<link type="text/css" rel="stylesheet" href="../styles/css/reset.css">
<link type="text/css" rel="stylesheet" href="../styles/css/index.css">
<script type="text/javascript" src="../scripts/html5.js"></script>
<!-- end -->
<title>干部信息</title>
</head>

<body>
	<c:if test="${! empty message}">

		<script type="text/javascript" language="javascript">
			window.onload = function() {
				var message = "${message}";
				alert(message);
			}
		</script>
	</c:if>
	<script type="text/javascript">
		function doQuery() {
			document.frm1.action = "showCadreList.jspx";
			document.frm1.target = "_self";
			document.frm1.submit();
		}

		function doDelete(id) {
			if (confirm("您正在删除该条信息，确认继续吗？")) {
				window.location.href = "deleteCadre.jspx?id=" + id;
			} else {
				return false;
			}
		}
	</script>

	<header>
	<div class="headerWrap"></div>
	</header>

	<div class="content">

		<section> <form:form action="showCadreList.jspx" name="frm1"
			id="frm1" modelAttribute="cadreListQo" target="_self">
			<div class="rc_fbt">
				<span class="left"> <span class="ml15 mr5 left">工作证号</span> <form:input
						path="cardNum" class="s_txt left mt13" /> <span
					class="mlr15 left">姓名</span> <form:input path="name"
						class="s_txt ml5 left mt13" /> <span class="mlr15 left">级别</span>
					<form:select path="jobLevel" class="ml5 left mt13">
						<form:option label="---请选择---" value=""></form:option>
						<form:option value="1">副部级</form:option>
						<form:option value="2">正局级</form:option>
						<form:option value="3">副局级</form:option>
						<form:option value="4">正处级</form:option>
						<form:option value="5">副处级</form:option>
						<form:option value="6">正科级</form:option>
						<form:option value="7">副科级</form:option>
					</form:select> <a class="btn_search ml10 left mt10" href="#" onclick="doQuery();"></a>
				</span>
				<p class="right">
					</a> <a class="btn2 mt10" href="gotoCadreAdd.jspx"> <span>新增</span>
					</a> <a class="btn2 mt10" href="gotoUploadCadreData.jspx"
						target="_blank"> <span>导入</span>
					</a> <a class="btn2 mt10" href="export2003.jspx"> <span>导出03excel</span>
					</a> <a class="btn2 mt10" href="export2007.jspx"> <span>导出07excel</span>
					</a>
				</p>
			</div>
		</form:form>
		<div class="rc_info mt20">
			<h3>
				<span class="r_title_ico"></span> 干部信息
			</h3>
		</div>
		<table class="rc_tab01" cellspacing="0" cellpadding="0"
			style="table-layout: fixed;">
			<tbody>
				<tr>
					<th style="width: 8%; text-align: center;">干部工作证号</th>
					<th style="width: 6%; text-align: center;">姓名</th>
					<th style="width: 5%; text-align: center;">性别</th>
					<th style="width: 10%; text-align: center;">院系部处</th>
					<th style="width: 12%; text-align: center;">职务</th>
					<th style="width: 7%; text-align: center;">级别</th>
					<th style="width: 15%; text-align: center;">邮件地址</th>
					<th style="width: 8%; text-align: center;">手机号</th>
					<th style="width: 10%; text-align: center;">办公电话</th>
					<th style="width: 8%; text-align: center;">操作</th>
				</tr>
				<c:forEach items="${dto}" var="dto" varStatus="s">
					<tr>
						<td style="text-align: center;">${dto.cardNum}</td>
						<td style="text-align: center;">${dto.name}</td>
						<td style="text-align: center;">${dto.sex}</td>
						<td style="text-align: center;">${dto.unitName}</td>
						<td style="text-align: center;">${dto.duty}</td>
						<c:if test="${dto.jobLevel =='1'}">
							<td style="text-align: center;">副部级</td>
						</c:if>
						<c:if test="${dto.jobLevel =='2'}">
							<td style="text-align: center;">正局级</td>
						</c:if>
						<c:if test="${dto.jobLevel =='3'}">
							<td style="text-align: center;">副局级</td>
						</c:if>
						<c:if test="${dto.jobLevel =='4'}">
							<td style="text-align: center;">正处级</td>
						</c:if>
						<c:if test="${dto.jobLevel =='5'}">
							<td style="text-align: center;">副处级</td>
						</c:if>
						<c:if test="${dto.jobLevel =='6'}">
							<td style="text-align: center;">正科级</td>
						</c:if>
						<c:if test="${dto.jobLevel =='7'}">
							<td style="text-align: center;">副科级</td>
						</c:if>
						<td style="text-align: center; overflow: hidden;" nowrap="nowrap"
							title="${dto.email}">${dto.email}</td>
						<td style="text-align: center; overflow: hidden;" nowrap="nowrap"
							title="${dto.mobileNum}">${dto.mobileNum}</td>
						<td style="text-align: center; overflow: hidden;" nowrap="nowrap"
							title="${dto.mobileNum}">${dto.officeTel}</td>
						<td class="rc_cr" style="text-align: center;"><a
							href="gotoCadreEdit.jspx?id=${dto.id}">编辑</a> &nbsp;|&nbsp; <a
							href="#" onclick="doDelete('${dto.id}');">删除</a></td>
					</tr>
				</c:forEach>
			</tbody>
		</table>
		<br>
		<page:page hrefStr="showCadreList.jspx" name="page"></page:page> 
		</section>
		<!-- cont end -->
	</div>

<%@include file="/common/foot.jsp"%>